VERSION 5.00
Begin VB.Form frmMDI 
   Appearance      =   0  'Flat
   BackColor       =   &H00000000&
   BorderStyle     =   0  'None
   Caption         =   "MDI"
   ClientHeight    =   11520
   ClientLeft      =   450
   ClientTop       =   1815
   ClientWidth     =   15360
   ClipControls    =   0   'False
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   11520
   ScaleWidth      =   15360
   ShowInTaskbar   =   0   'False
   Begin VB.Timer Timer1 
      Interval        =   1000
      Left            =   3240
      Top             =   3840
   End
   Begin Mercancias.Imagen imgUsuarioActual 
      Height          =   1575
      Left            =   2520
      TabIndex        =   2
      Top             =   9840
      Width           =   1350
      _ExtentX        =   2381
      _ExtentY        =   2778
      ForeColor       =   16777215
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "MS Sans Serif"
         Size            =   8.25
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      BckColor        =   16777215
   End
   Begin VB.Label Label1 
      BackStyle       =   0  'Transparent
      BeginProperty Font 
         Name            =   "Lithos Pro Regular"
         Size            =   12
         Charset         =   0
         Weight          =   850
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00EAE9D2&
      Height          =   375
      Left            =   600
      TabIndex        =   1
      Top             =   10920
      Width           =   1455
   End
   Begin VB.Label Label2 
      BackStyle       =   0  'Transparent
      BeginProperty Font 
         Name            =   "Lithos Pro Regular"
         Size            =   12
         Charset         =   0
         Weight          =   850
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00EAE9D2&
      Height          =   375
      Left            =   480
      TabIndex        =   0
      Top             =   9720
      Width           =   2295
   End
End
Attribute VB_Name = "frmMDI"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit


Public Property Let SetUser(ByVal vData As Boolean)
'Mostrar foto usuario y Nombre

    With imgUsuarioActual
        If vData Then
            Set .Picture = user_val.Foto
            .Caption = user_val.Nombre
        Else
            Set .Picture = Nothing
            .Caption = vbNullString
        End If
    End With
    
End Property

Private Sub Form_Initialize()

    Picture = ImagenFromBits(LoadResData("MDI", "FONDO"))
    
    Label1.Caption = Format(Now, "hh:mm:ss")
    
    Label2.Caption = Format(Now, "dd MMM yyyy")

    Me.Enabled = False
    
End Sub

Private Sub Timer1_Timer()

    Label1.Caption = Format(Now, "hh:mm:ss")
    
End Sub
